import Vue from 'vue'
import HelloWorld from '@/views/HelloWorld.vue'
import Test1 from '@/views/test1.vue'

export default [
  {
    path: '/',
    name: 'HelloWorld',
    component: HelloWorld,
    children: [
      {
        path: 'spa1spa2',
        name: 'singleChild2',
        component: Vue.component('singleChild2', {
          render: h => h('div', { attrs: { id: 'singleChild2' } })
        }),
        meta: {
          keepAlive: true
        }
      }
    ]
  },
  {
    path: '/test1',
    name: 'test1',
    component: Test1
  }
]
